package practice.linkedlist;

public class Node {
    public int id;
    public Object data;
    public Node next;


    public Node(int id, Object data) {
        this.id = id;
        this.data = data;
    }

    @Override
    public String toString() {
        return "Node{" +
                "id=" + id +
                ", data=" + data +
                '}';
    }
}
